/***
 * @Author: lwt
 * @description: 这里是描述
 */


import request from '../request.js'
import { reactive } from "vue";
const API = reactive({
  //客户管理list
    testList: "/common/bindCustomer",
    formlist: '/form/list',
    addFriend:'/form/addFriend'
});

/**
 * get请求
 * @param name
 * @param parameter
 */
const get = (name, parameter) => {
  return request({
    url: API[name],
    method: "get",
    data: parameter,
  });
};
/**
 * post请求
 * @param name
 * @param parameter
 */

const post = (name, parameter) => {
  return request({
    url: API[name],
    method: "post",
    data: parameter,
  });
};
export default {
  get,
  post,
};